<?php


namespace app\ymsh\controller\java;


use think\response\Json;

class PageSet extends BaseController
{
    /**
     * @note 获取本地生活跳转链接
     * @method get
     * @author ymzhang
     * @date 2022-11-28
     * @return Json
     */
    public function getLocalLifeActivityList()
    {
        $basePath = env('app.api_url').'/topup/transferPage/index?act_id=';
        $activity = [
            [
                'name' => '本地生活聚合页',
                'path' => env('app.api_url').'/topup/discount/index',
                'code' => 1,
            ],
            [
                'name' => '出行聚合页',
                'path' => env('app.api_url').'/topup/dailyTravel/index',
                'code' => 12,
            ],
            [
                'name' => '滴滴打车',
                'path' => $basePath.'42',
                'code' => 2,
            ],
            [
                'name' => '高德打车',
                'path' =>  $basePath.'47',
                'code' => 3,
            ],
            [
                'name' => '花小猪打车',
                'path' => $basePath.'49',
                'code' => 4,
            ],
            [
                'name' => '同程打车',
                'path' =>  $basePath.'87',
                'code' => 5,
            ],
            [
                'name' => '滴滴代驾',
                'path' =>  $basePath.'67',
                'code' => 6,
            ],
            [
                'name' => '滴滴加油',
                'path' =>  $basePath.'43',
                'code' => 7,
            ],
            [
                'name' => '滴滴货运',
                'path' =>  $basePath.'44',
                'code' => 8,
            ],
            [
                'name' => '美团外卖',
                'path' =>  env('app.api_url').'/takeout/meituan?act_id=33&from=wechat',
                'code' => 9,
            ],
            [
                'name' => '饿了么外卖',
                'path' =>  env('app.api_url').'/topup/takeout/ele',
                'code' => 10,
            ],
            [
                'name' => 'CPS话费',
                'path' => env('app.api_url').'/jxcall/index',
                'code' => 11,
            ],
        ];
        return success('success', $activity);
    }
}